import request from '@/axios'
import { RequestResponse } from './types'
export const PATH_URL = import.meta.env.VITE_APP_SERVER
interface FlyInfoParams {
  tenantId: number
}
// 飞行架数，飞行里程
// export const getFlyStatusInfo = (params: FlyInfoParams)=> {
//   return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryFlightCountInfo', params })
// }
// 飞行架数，飞行里程
export const getFlyStatusInfo = ()=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryFlightCountInfo' })
}
// 全国机场分布情况
export const AirDistribution = ()=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryAirportNum' })
}
// 任务列表
export const getTaskList = ()=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryTodayAirportTaskList' })
}
// airportList 实时监控  机场列表
export const getAirportList = ()=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryAirportList4Screen' })
}
// airportList   近期预警   0警告 1失败 2成功  
export const getWarningList = (params)=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryAirportLogs4Screen' ,params})
}
// 获取机场详细信息
export const getPortInfo = (params)=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryAirportById4Screen' ,params})
}
// 获取区域分布统计信息


export const getAreaDisInfo = (params)=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryAreaAirPortList' ,params})
}
// 获取机场按城市分布统计信息
export const getAirportCity = ()=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryProvinceAirPortList' })
}
// 获取首页实时监控数据
export const getHomeMonitor = ()=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryAirportLiveStream' })
}
// 获取行业机场统计
export const getIndustryPort = ()=> {
  return request.get<IResponse<RequestResponse>>({ url:PATH_URL+'/airportScreen/queryAirportByBusiness' })
}